<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>使用 Global 模式创建创建一个 Vue 应用</title>
</head>
<body>
<div id="app">{{ msg }}</div>
</body>
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script >
    const { createApp, ref } = Vue
    const app = createApp({
        setup(){
            let msg = "Hello, World!"
            return {msg}
        }
    })

    app.mount("#app")
</script>
</html>